/*
 * Created on 26.02.2004
 * Local Projects Database
 * Mihai Postelnicu (mihai@ro-gateway.org)
 * (c) 2003 by eRomania Gateway
 */
package ro.gateway.aida.struts.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;


/**
 * @author Mihai Postelnicu<p>
 *
 *  e-mail (mihai@ro-gateway.org)<br>
 * (c) 2003 by eRomania Gateway<p>
 */
public class ActivitySelectorForm extends ActionForm {
	// --------------------------------------------------------- Instance Variables
	private String searchText;
	private String relationType;
	private long selectedActivityId;
	// --------------------------------------------------------- Methods

	/** 
	 * Method reset
	 * @param ActionMapping mapping
	 * @param HttpServletRequest request
	 */
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		searchText="";
		relationType="";
		selectedActivityId=-1;
	}


	
	/**
	 * @return
	 */
	public String getRelationType() {
		return relationType;
	}

	/**
	 * @return
	 */
	public String getSearchText() {
		return searchText;
	}

	/**
	 * @param i
	 */
	public void setRelationType(String i) {
		relationType = i;
	}

	/**
	 * @param string
	 */
	public void setSearchText(String string) {
		searchText = string;
	}

	/**
	 * @return
	 */
	public long getSelectedActivityId() {
		return selectedActivityId;
	}

	/**
	 * @param l
	 */
	public void setSelectedActivityId(long l) {
		selectedActivityId = l;
	}

}
